<!DOCTYPE HTML PUBLIC "-//ORA//DTD CD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>[Chapter 25] 25.60 java.lang.System (JDK 1.0)</TITLE>
<META NAME="author" CONTENT="David Flanagan">
<META NAME="date" CONTENT="Thu Jul 31 16:27:49 1997">
<META NAME="form" CONTENT="html">
<META NAME="metadata" CONTENT="dublincore.0.1">
<META NAME="objecttype" CONTENT="book part">
<META NAME="otheragent" CONTENT="gmat dbtohtml">
<META NAME="publisher" CONTENT="O'Reilly &amp; Associates, Inc.">
<META NAME="source" CONTENT="SGML">
<META NAME="subject" CONTENT="Java">
<META NAME="title" CONTENT="Java in a Nutshell">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
</HEAD>
<body vlink="#551a8b" alink="#ff0000" text="#000000" bgcolor="#FFFFFF" link="#0000ee">

<DIV CLASS=htmlnav>
<H1><a href='index.htm'><IMG SRC="gifs/smbanner.gif"
     ALT="Java in a Nutshell" border=0></a></H1>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch25_59.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><B><FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1">Chapter 25<br>The java.lang Package</FONT></B></TD>
<td width=172 align=right valign=top><A HREF="ch25_61.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
</table>

&nbsp;
<hr align=left width=515>
</DIV>
<DIV CLASS=sect1>
<h2 CLASS=sect1><A CLASS="TITLE" NAME="JNUT2-CH-25-SECT-60">25.60 java.lang.System (JDK 1.0)</A></h2>

<DIV CLASS=sect2>
<h3 CLASS=sect2><A CLASS="TITLE" NAME="JNUT2-CH-25-SECT-60.1"></A></h3>
</DIV>

<P CLASS=para>
This class defines methods that provide a
platform-independent interface to system functions. All of
the methods and variables of this class are static. The
class may not be instantiated.

<P CLASS=para>
<tt CLASS=literal>getProperty()</tt> looks up a named property on the
system properties list, returning the optionally specified
default value if no property definition was found.
<tt CLASS=literal>getProperties()</tt> returns the entire properties list.
<tt CLASS=literal>setProperties()</tt> sets a <tt CLASS=literal>Properties</tt> object on
the properties list.

<P CLASS=para>
The <tt CLASS=literal>in</tt>, <tt CLASS=literal>out</tt>, and <tt CLASS=literal>err</tt> variables are
the system standard input, output, and error streams.
<tt CLASS=literal>arraycopy()</tt> copies an array or a portion of an array
into a destination array.
<tt CLASS=literal>currentTimeMillis()</tt> returns the
current time in milliseconds since midnight GMT on January
1, 1970.

<P CLASS=para>
<tt CLASS=literal>exit()</tt>, <tt CLASS=literal>gc()</tt>, <tt CLASS=literal>load()</tt>,
<tt CLASS=literal>loadLibrary()</tt>, and <tt CLASS=literal>runFinalization()</tt> invoke
the methods of the same name in the <tt CLASS=literal>Runtime</tt> object.
See <tt CLASS=literal>Runtime</tt> for details.

<DIV CLASS=screen>
<P>
<PRE>
public final class <tt CLASS=literal>System</tt> extends Object {
    // <tt CLASS=literal>No Constructor</tt>
    // <tt CLASS=literal>Constants</tt>
            public static final PrintStream <tt CLASS=literal>err</tt>;
            public static final InputStream <tt CLASS=literal>in</tt>;
            public static final PrintStream <tt CLASS=literal>out</tt>;
    // <tt CLASS=literal>Class Methods</tt>
            public static native void <tt CLASS=literal>arraycopy</tt>(Object <tt CLASS=literal>src</tt>, int <tt CLASS=literal>src_position</tt>, Object <tt CLASS=literal>dst</tt>, int <tt CLASS=literal>dst_position</tt>, int <tt CLASS=literal>length</tt>);
            public static native long <tt CLASS=literal>currentTimeMillis</tt>();
            public static void <tt CLASS=literal>exit</tt>(int <tt CLASS=literal>status</tt>);
            public static void <tt CLASS=literal>gc</tt>();
            public static Properties <tt CLASS=literal>getProperties</tt>();
            public static String <tt CLASS=literal>getProperty</tt>(String <tt CLASS=literal>key</tt>);
            public static String <tt CLASS=literal>getProperty</tt>(String <tt CLASS=literal>key</tt>, String <tt CLASS=literal>def</tt>);
            public static SecurityManager <tt CLASS=literal>getSecurityManager</tt>();
        #   public static String <tt CLASS=literal>getenv</tt>(String <tt CLASS=literal>name</tt>);
        <b>1.1</b>public static native int <tt CLASS=literal>identityHashCode</tt>(Object <tt CLASS=literal>x</tt>);
            public static void <tt CLASS=literal>load</tt>(String <tt CLASS=literal>filename</tt>);
            public static void <tt CLASS=literal>loadLibrary</tt>(String <tt CLASS=literal>libname</tt>);
            public static void <tt CLASS=literal>runFinalization</tt>();
        <b>1.1</b>public static void <tt CLASS=literal>runFinalizersOnExit</tt>(boolean <tt CLASS=literal>value</tt>);
        <b>1.1</b>public static void <tt CLASS=literal>setErr</tt>(PrintStream <tt CLASS=literal>err</tt>);
        <b>1.1</b>public static void <tt CLASS=literal>setIn</tt>(InputStream <tt CLASS=literal>in</tt>);
        <b>1.1</b>public static void <tt CLASS=literal>setOut</tt>(PrintStream <tt CLASS=literal>out</tt>);
            public static void <tt CLASS=literal>setProperties</tt>(Properties <tt CLASS=literal>props</tt>);
            public static void <tt CLASS=literal>setSecurityManager</tt>(SecurityManager <tt CLASS=literal>s</tt>);
}
</PRE>
</DIV>

<P CLASS=para>
</DIV>

</DIV>


<DIV CLASS=htmlnav>

<P>
<HR align=left width=515>
<table width=515 border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=172 align=left valign=top><A HREF="ch25_59.htm"><IMG SRC="gifs/txtpreva.gif" ALT="Previous" border=0></A></td>
<td width=171 align=center valign=top><a href="index.htm"><img src='gifs/txthome.gif' border=0 alt='Home'></a></td>
<td width=172 align=right valign=top><A HREF="ch25_61.htm"><IMG SRC="gifs/txtnexta.gif" ALT="Next" border=0></A></td>
</tr>
<tr>
<td width=172 align=left valign=top>java.lang.StringIndexOutOfBoundsException (JDK 1.0)</td>
<td width=171 align=center valign=top><a href="index/idx_0.htm"><img src='gifs/index.gif' alt='Book Index' border=0></a></td>
<td width=172 align=right valign=top>java.lang.Thread (JDK 1.0)</td>
</tr>
</table>
<hr align=left width=515>

<IMG SRC="gifs/smnavbar.gif" USEMAP="#map" BORDER=0> 
<MAP NAME="map"> 
<AREA SHAPE=RECT COORDS="0,0,108,15" HREF="../javanut/index.htm"
alt="Java in a Nutshell"> 
<AREA SHAPE=RECT COORDS="109,0,200,15" HREF="../langref/index.htm" 
alt="Java Language Reference"> 
<AREA SHAPE=RECT COORDS="203,0,290,15" HREF="../awt/index.htm" 
alt="Java AWT"> 
<AREA SHAPE=RECT COORDS="291,0,419,15" HREF="../fclass/index.htm" 
alt="Java Fundamental Classes"> 
<AREA SHAPE=RECT COORDS="421,0,514,15" HREF="../exp/index.htm" 
alt="Exploring Java"> 
</MAP>
</DIV>

</BODY>
</HTML>
